package com.ruoyi.system.domain;

import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 产品表对象 product
 * 
 * @author ruoyi
 * @date 2020-05-26
 */
public class Product extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 产品ID */
    private String productId;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String productName;

    /** 产品编码 */
    @Excel(name = "产品编码")
    private String productCore;

    /** 分类ID */
    @Excel(name = "分类ID")
    private String categoryId;

    /** 进货价格 */
    @Excel(name = "进货价格")
    private Double purchasePrice;

    /** 零售价格 */
    @Excel(name = "零售价格")
    private Double salePrice;

    /** 会员价 */
    @Excel(name = "会员价")
    private Double memberPrice;

    /** PV值 */
    @Excel(name = "PV值")
    private Double pv;

    /** 是否锁定 */
    @Excel(name = "是否锁定")
    private Long status;

    /** 产品描述 */
    @Excel(name = "产品描述")
    private String goodDesc;

    /** 规格 */
    @Excel(name = "规格")
    private String specs;

    /** 总库存 */
    @Excel(name = "总库存")
    private Long totalStock;

    /** 删除标志（0默认不删，1为删除） */
    private Long delFlag;

    /** 地区 */
    @Excel(name = "地区")
    private Long regionId;

    /** 是否上架（0没上架，1上架） */
    @Excel(name = "是否上架", readConverterExp = "0=没上架，1上架")
    private Long isSale;

    /** 是否是精品（0不是精品，1精品） */
    @Excel(name = "是否是精品", readConverterExp = "0=不是精品，1精品")
    private Long isBest;

    /** 是否热销产品（ 0不是热销，1热销） */
    @Excel(name = "是否热销产品", readConverterExp = "0=不是热销，1热销")
    private Long isHot;

    /** 是否新品（0否，1新品） */
    @Excel(name = "是否新品", readConverterExp = "0=否，1新品")
    private Long isNew;

    /** 是否推荐（0不促销，1促销） */
    @Excel(name = "是否推荐", readConverterExp = "0=不促销，1促销")
    private Long isRecom;

    /** 是否促销 （0不促销，1促销） */
    @Excel(name = "是否促销 ", readConverterExp = "0=不促销，1促销")
    private Long isPromotion;

    /** 供应商ID */
    @Excel(name = "供应商ID")
    private Long supplierId;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 总销量 */
    @Excel(name = "总销量")
    private Long saleNum;

    /** 商品视频 */
    @Excel(name = "商品视频")
    private String productVideo;

    /** 是否包邮（0不包邮，1包邮） */
    @Excel(name = "是否包邮", readConverterExp = "0=不包邮，1包邮")
    private Long isFreeShipping;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    /** 创建时间 */
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 最后修改时间 */
    @Excel(name = "最后修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateDate;

    public void setProductId(String productId) 
    {
        this.productId = productId;
    }

    public String getProductId() 
    {
        return productId;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setProductCore(String productCore) 
    {
        this.productCore = productCore;
    }

    public String getProductCore() 
    {
        return productCore;
    }
    public void setCategoryId(String categoryId) 
    {
        this.categoryId = categoryId;
    }

    public String getCategoryId() 
    {
        return categoryId;
    }
    public void setPurchasePrice(Double purchasePrice) 
    {
        this.purchasePrice = purchasePrice;
    }

    public Double getPurchasePrice() 
    {
        return purchasePrice;
    }
    public void setSalePrice(Double salePrice) 
    {
        this.salePrice = salePrice;
    }

    public Double getSalePrice() 
    {
        return salePrice;
    }
    public void setMemberPrice(Double memberPrice) 
    {
        this.memberPrice = memberPrice;
    }

    public Double getMemberPrice() 
    {
        return memberPrice;
    }
    public void setPv(Double pv) 
    {
        this.pv = pv;
    }

    public Double getPv() 
    {
        return pv;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setGoodDesc(String goodDesc) 
    {
        this.goodDesc = goodDesc;
    }

    public String getGoodDesc() 
    {
        return goodDesc;
    }
    public void setSpecs(String specs) 
    {
        this.specs = specs;
    }

    public String getSpecs() 
    {
        return specs;
    }
    public void setTotalStock(Long totalStock) 
    {
        this.totalStock = totalStock;
    }

    public Long getTotalStock() 
    {
        return totalStock;
    }
    public void setDelFlag(Long delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() 
    {
        return delFlag;
    }
    public void setRegionId(Long regionId) 
    {
        this.regionId = regionId;
    }

    public Long getRegionId() 
    {
        return regionId;
    }
    public void setIsSale(Long isSale) 
    {
        this.isSale = isSale;
    }

    public Long getIsSale() 
    {
        return isSale;
    }
    public void setIsBest(Long isBest) 
    {
        this.isBest = isBest;
    }

    public Long getIsBest() 
    {
        return isBest;
    }
    public void setIsHot(Long isHot) 
    {
        this.isHot = isHot;
    }

    public Long getIsHot() 
    {
        return isHot;
    }
    public void setIsNew(Long isNew) 
    {
        this.isNew = isNew;
    }

    public Long getIsNew() 
    {
        return isNew;
    }
    public void setIsRecom(Long isRecom) 
    {
        this.isRecom = isRecom;
    }

    public Long getIsRecom() 
    {
        return isRecom;
    }
    public void setIsPromotion(Long isPromotion) 
    {
        this.isPromotion = isPromotion;
    }

    public Long getIsPromotion() 
    {
        return isPromotion;
    }
    public void setSupplierId(Long supplierId) 
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() 
    {
        return supplierId;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setSaleNum(Long saleNum) 
    {
        this.saleNum = saleNum;
    }

    public Long getSaleNum() 
    {
        return saleNum;
    }
    public void setProductVideo(String productVideo) 
    {
        this.productVideo = productVideo;
    }

    public String getProductVideo() 
    {
        return productVideo;
    }
    public void setIsFreeShipping(Long isFreeShipping) 
    {
        this.isFreeShipping = isFreeShipping;
    }

    public Long getIsFreeShipping() 
    {
        return isFreeShipping;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setUpdateDate(Date updateDate) 
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() 
    {
        return updateDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productId", getProductId())
            .append("productName", getProductName())
            .append("productCore", getProductCore())
            .append("categoryId", getCategoryId())
            .append("purchasePrice", getPurchasePrice())
            .append("salePrice", getSalePrice())
            .append("memberPrice", getMemberPrice())
            .append("pv", getPv())
            .append("status", getStatus())
            .append("goodDesc", getGoodDesc())
            .append("specs", getSpecs())
            .append("totalStock", getTotalStock())
            .append("delFlag", getDelFlag())
            .append("regionId", getRegionId())
            .append("isSale", getIsSale())
            .append("isBest", getIsBest())
            .append("isHot", getIsHot())
            .append("isNew", getIsNew())
            .append("isRecom", getIsRecom())
            .append("isPromotion", getIsPromotion())
            .append("supplierId", getSupplierId())
            .append("unit", getUnit())
            .append("saleNum", getSaleNum())
            .append("productVideo", getProductVideo())
            .append("isFreeShipping", getIsFreeShipping())
            .append("remarks", getRemarks())
            .append("createBy", getCreateBy())
            .append("createDate", getCreateDate())
            .append("updateBy", getUpdateBy())
            .append("updateDate", getUpdateDate())
            .toString();
    }
}
